package dominio;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

import AppModel.ExcepcionDelDominio;

public class Validacion {
	
	public static boolean esNegativo (int numero){
		return (numero < 0);
	}
	
	public static boolean contieneNumeros (String string){
		Pattern pat = Pattern.compile("1234567890");
		Matcher mat = pat.matcher(string);
		return mat.find();
	}
}
